package com.star.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.star.model.OSSLog;

import io.ebean.Ebean;

@Controller
@RequestMapping(value = "/")
public class HomeController {
	@RequestMapping(value = "", method = { RequestMethod.GET, RequestMethod.POST })
	@ResponseBody
	public String home(HttpServletRequest request) {
		Ebean.find(OSSLog.class).where().eq("id", 1).findList();
		System.out.println("1");
		System.out.println("2");
		return "success";
	}
}
